package com.tron.controller;

import java.util.HashMap;

public class BaseController {

    public static <T> HashMap<String, Object> buildResult(T t) {
        HashMap<String, Object> result = new HashMap<>();
        result.put("code", 200);
        result.put("result", t);
        return result;
    }
}
